﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Photo
{
    public partial class AlbumDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
              
                LoadrprNews();
            }
        }

       
        private void LoadrprNews()
        {
            CollectionPager1.MaxPages = 10000;

            CollectionPager1.PageSize = 30;

            CollectionPager1.DataSource = new IMGBL().SelectbyAlbum(Int32.Parse(Request.QueryString["id"].ToString())).DefaultView;

            CollectionPager1.BindToControl = Repeater1;
            Repeater1.DataSource = CollectionPager1.DataSourcePaged;
            Repeater1.DataBind();
        }

    }
}